﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace IISDeploy.Views
{
    public partial class ObjectExplorerViewControl : UserControl
    {        
        public ObjectExplorerViewControl()
        {
            InitializeComponent();
        }

        protected void AddItens(string[] names)
        {
            lstObjectExplorer.BeginUpdate();
            try
            {
                lstObjectExplorer.Clear();
                foreach(string name in names)
                {
                    lstObjectExplorer.Items.Add(new ListViewItem(name, 0));
                }
            }
            finally
            {
                lstObjectExplorer.EndUpdate();
            }
        }       
    }
}
